#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
    int num = 0;
    while (scanf("%d", &num) != EOF)
    {
        if (num > 0)
        {
            printf("1\n");
        }
        else if (num == 0)
        {
            printf("%.1f\n", 1 / 2.0);
        }
        else
        {
            printf("0\n");
        }
    }
    return 0;
}